package com.fy.spring.controller;


import com.fy.spring.feign.PaymentFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping(value = "/consumer/payment/feign")
public class OrderController {

    @Autowired
    private PaymentFeignClient paymentFeignClient;

    @GetMapping("/lb")
    public String getPaymentLB() {
        return paymentFeignClient.lb();
    }

    @GetMapping("/timeout")
    public String timeout() {
        return paymentFeignClient.timeout();
    }
}
